import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';

import { LogInInterfaceComponent } from './log-in-interface/log-in-interface.component';
import { StaffAttendanceModule } from './staff-attendance/staff-attendance.module';
import { ManagerSystemModule } from './manager-system/manager-system.module';
import { AdministrationStaffAttendanceModule } from './administration-staff-attendance/administration-staff-attendance.module';
import { RegisterComponent } from './register/register.component';

import { HttpModule } from '@angular/http';
// import { HttpClientModule } from '@angular/common/http';
import { ApiService } from './service/api.service';
import { CoreModule } from './core/core.module';
import { ProfileModule } from './profile/profile.module';
import { HolidayService } from './service/holiday.service';
import { LogInModule } from './log-in/log-in.module';
import { UserService } from './service/user.service';

// import {CookieService} from 'angular2-cookie/core';

@NgModule({
  declarations: [
    AppComponent, 
    LogInInterfaceComponent, 
    RegisterComponent
    
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    StaffAttendanceModule,
    ManagerSystemModule,
    AdministrationStaffAttendanceModule,
    FormsModule,
    HttpModule,
    CoreModule,
    ProfileModule,
    LogInModule,
    // HttpClientModule,
  ],
  providers: [
    ApiService,
    HolidayService,
    UserService,
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
